/**
 * 
 */
package cn.com.xf.service;

import java.math.BigDecimal;
import java.util.List;

import cn.com.xf.domain.TblOaSoft;
import cn.com.xf.domain.TblOaSoftType;

/**
 * @author Administrator
 * 
 */
public interface SoftService {

	/**
	 * 查询
	 * 
	 * @param begin
	 * @param pageSize
	 * @param searchField
	 * @param searchValue
	 * @param orderByField
	 * @param orderByMode
	 * @param centerId 
	 * @return
	 */
	List<TblOaSoft> select(int begin, int pageSize, String orderByField, String orderByMode, String fileType, String centerId);

	List<TblOaSoft> select(int begin, int pageSize, String orderByField, String orderByMode, String fileType,String fileName,String publicMan,String createDateBegin,String createDateEnd, String centerId);
	
	
	/**
	 * 统计
	 * @param centerId 
	 * 
	 * @param filed
	 * @param value
	 * @return
	 */
	int selectCount(String fileType, String centerId);

	/**
	 * 插入
	 * @param centerId 
	 * 
	 * @param coreNotice
	 * @return
	 */
	int insert(TblOaSoft coreFile, String centerId);
	
	int selectCount(String fileType,String fileName,String publicMan,String createDateBegin,String createDateEnd, String centerId);

	/**
	 * 按照ID查询
	 * 
	 * @param id
	 * @return
	 */
	TblOaSoft selectById(Integer id);

	/**
	 * 更新
	 * 
	 * @param coreNotice
	 * @return
	 */
	int update(TblOaSoft coreFile);

	/**
	 * 获取文件类型
	 * 
	 * @return
	 */
	List<TblOaSoftType> selectCoreFileTypeList();
	
	TblOaSoftType selectCoreFileTypeById(BigDecimal id);

	int deleteById(Integer id);

	List<String> selectRegions(Integer valueOf);
	
}
